.class Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;
.super Ljava/lang/Object;
.source "CommunityAppBaseFragment.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->cacheAppModels()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppBaseFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    .prologue
    .line 385
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .prologue
    const/16 v4, 0x14

    .line 390
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v3, v3, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mExtraModels:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    sub-int/2addr v2, v3

    if-le v2, v4, :cond_36

    .line 391
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v3, v3, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mExtraModels:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    invoke-virtual {v2, v3, v4}, Ljava/util/ArrayList;->subList(II)Ljava/util/List;

    move-result-object v0

    .line 397
    .local v0, "cachedModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    :goto_25
    :try_start_25
    new-instance v2, Lcom/google/gson/Gson;

    invoke-direct {v2}, Lcom/google/gson/Gson;-><init>()V

    invoke-virtual {v2, v0}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget v3, v3, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mType:I

    invoke-static {v2, v3}, Lcom/brixd/niceapp/service/AppService;->cacheCommunityAppModelsData(Ljava/lang/String;I)V
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_25 .. :try_end_35} :catch_4f

    .line 401
    :goto_35
    return-void

    .line 393
    .end local v0    # "cachedModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    :cond_36
    iget-object v2, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v2, v2, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    iget-object v3, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v3, v3, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mExtraModels:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    iget-object v4, p0, Lcom/brixd/niceapp/community/CommunityAppBaseFragment$7;->this$0:Lcom/brixd/niceapp/community/CommunityAppBaseFragment;

    iget-object v4, v4, Lcom/brixd/niceapp/community/CommunityAppBaseFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    invoke-virtual {v2, v3, v4}, Ljava/util/ArrayList;->subList(II)Ljava/util/List;

    move-result-object v0

    .restart local v0    # "cachedModels":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/community/model/CommunityAppModel;>;"
    goto :goto_25

    .line 398
    :catch_4f
    move-exception v1

    .line 399
    .local v1, "e":Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_35
.end method
